package com.spring.propertyioc;

public class SysConfig {

    private int sessionTimeOut;

    private int maxTabPageNum;

    //mo模拟从数据库获取配置并设置相应的属性
    public void initFromDb(){
        this.maxTabPageNum = 90;
        this.sessionTimeOut = 100;
    }

    public int getSessionTimeOut() {
        return sessionTimeOut;
    }

    public int getMaxTabPageNum() {
        return maxTabPageNum;
    }
}
